aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/dir.c
AgeCommit message (Expand)AuthorFilesLines
2024-02-25nfs: make nfs_set_verifier() safe for use in RCU pathwalkAl Viro1-2/+2
2024-01-04nfs: add new tracepoint at nfs4 revalidate entry pointJeff Layton1-0/+2
2024-01-04NFS: Use parent's objective cred in nfs_access_login_time()Scott Mayhew1-1/+1
2023-11-01nfs: Convert nfs_symlink() to use a folioMatthew Wilcox (Oracle)1-17/+12
2023-08-24nfs: fix redundant readdir request after get eofKinglong Mee1-4/+11
2023-05-19NFS: Convert kmap_atomic() to kmap_local_folio()Fabio M. De Francesco1-2/+2
2023-05-09nfs: fix another case of NULL/IS_ERR confusion wrt folio pointersLinus Torvalds1-1/+1
2023-05-06nfs: fix mis-merged __filemap_get_folio() error checkLinus Torvalds1-1/+1
2023-04-12NFS: Convert readdir page array functions to use a folioAnna Schumaker1-102/+99
2023-04-12NFS: Convert the readdir array-of-pages into an array-of-foliosAnna Schumaker1-64/+65
2023-03-14NFS: Correct timing for assigning access cache timestampChengen Du1-1/+1
2023-02-22Merge tag 'nfs-for-6.3-1' of git://git.linux-nfs.org/projects/anna/linux-nfsLinus Torvalds1-14/+14
2023-02-20Merge tag 'fs.idmapped.v6.3' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-7/+7
2023-02-15fs/nfs: Replace kmap_atomic() with kmap_local_page() in dir.cFabio M. De Francesco1-14/+14
2023-01-19fs: port ->permission() to pass mnt_idmapChristian Brauner1-2/+2
2023-01-19fs: port ->rename() to pass mnt_idmapChristian Brauner1-1/+1
2023-01-19fs: port ->mknod() to pass mnt_idmapChristian Brauner1-1/+1
2023-01-19fs: port ->mkdir() to pass mnt_idmapChristian Brauner1-1/+1
2023-01-19fs: port ->symlink() to pass mnt_idmapChristian Brauner1-1/+1
2023-01-19fs: port ->create() to pass mnt_idmapChristian Brauner1-1/+1
2023-01-01NFS: Fix up a sparse warningTrond Myklebust1-1/+3
2023-01-01NFS: Judge the file access cache's timestamp in rcu pathChengen Du1-0/+3
2022-11-27NFS: Trigger the "ls -l" readdir heuristic soonerBenjamin Coddington1-2/+7
2022-11-27NFS: Clear the file access cache upon loginTrond Myklebust1-0/+23
2022-10-27nfs: Remove redundant null checks before kfreeYushan Zhou1-3/+2
2022-10-06Merge tag 'pull-file_inode' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-1/+1
2022-09-01nfs_finish_open(): don't open-code file_inode()Al Viro1-1/+1
2022-08-19NFS: unlink/rmdir shouldn't call d_delete() twice on ENOENTNeilBrown1-1/+2
2022-08-13NFS: Fix missing unlock in nfs_unlink()Sun Ke1-1/+3
2022-08-08NFS: don't unhash dentry during unlink/renameNeilBrown1-18/+54
2022-07-12nfs: Replace kmap() with kmap_local_page()Fabio M. De Francesco1-2/+2
2022-07-10NFS: Fix case insensitive renamesTrond Myklebust1-0/+4
2022-06-15NFSv4: Add FMODE_CAN_ODIRECT after successful open of a NFS4.x fileDave Wysochanski1-0/+1
2022-05-09nfs: Convert to free_folioMatthew Wilcox (Oracle)1-2/+7
2022-04-07NFS: Replace readdir's use of xxhash() with hash_64()Trond Myklebust1-6/+3
2022-03-29NFSv4: fix open failure with O_ACCMODE flagChenXiaoSong1-10/+0
2022-03-22NFS: Fix revalidation of empty readdir pagesTrond Myklebust1-2/+7
2022-03-22NFS: Don't deadlock when cookie hashes collideTrond Myklebust1-11/+18
2022-03-02NFS: Cache all entries in the readdirplus replyTrond Myklebust1-14/+26
2022-03-02NFS: Optimise away the previous cookie fieldTrond Myklebust1-12/+14
2022-03-02NFS: Fix up forced readdirplusTrond Myklebust1-17/+39
2022-03-02NFS: Convert readdir page cache to use a cookie based indexTrond Myklebust1-84/+65
2022-03-02NFS: Clean up page array initialisation/freeTrond Myklebust1-10/+6
2022-03-02NFS: Trace effects of the readdirplus heuristicTrond Myklebust1-1/+10
2022-03-02NFS: Trace effects of readdirplus on the dcacheTrond Myklebust1-0/+5
2022-03-02NFS: Add basic readdir tracingTrond Myklebust1-1/+12
2022-03-02NFS: Don't request readdirplus when revalidation was forcedTrond Myklebust1-10/+16
2022-03-02NFS: Readdirplus can't help lookup for case insensitive filesystemsTrond Myklebust1-0/+2
2022-03-02NFS: Improve heuristic for readdirplusTrond Myklebust1-29/+51
2022-03-02NFS: Reduce use of uncached readdirTrond Myklebust1-20/+3
2022-03-02NFS: Simplify nfs_readdir_xdr_to_array()Trond Myklebust1-18/+11
2022-03-02NFS: If the cookie verifier changes, we must invalidate the page cacheTrond Myklebust1-1/+6
2022-03-02NFS: Adjust the amount of readahead performed by NFS readdirTrond Myklebust1-1/+52
2022-03-02NFS: Don't advance the page pointer unless the page is fullTrond Myklebust1-10/+22
2022-03-02NFS: Don't re-read the entire page cache to find the next cookieTrond Myklebust1-3/+7
2022-03-02NFS: Store the change attribute in the directory page cacheTrond Myklebust1-31/+37
2022-02-28NFS: Calculate page offsets algorithmicallyTrond Myklebust1-5/+13
2022-02-28NFS: Use kzalloc() to avoid initialising the nfs_open_dir_contextTrond Myklebust1-7/+4
2022-02-28NFS: Initialise the readdir verifier as best we can in nfs_opendir()Trond Myklebust1-0/+1
2022-02-28NFS: Trace lookup revalidation failureTrond Myklebust1-12/+5
2022-02-25NFS: Clean up NFSv4.2 xattrsTrond Myklebust1-5/+2
2022-02-25NFSv4.1 support for NFS4_RESULT_PRESERVER_UNLINKEDOlga Kornievskaia1-2/+8
2022-02-25NFS: Charge open/lock file contexts to kmemcgTrond Myklebust1-1/+1
2022-02-14NFS: LOOKUP_DIRECTORY is also ok with symlinksTrond Myklebust1-2/+2
2022-02-02NFS: Avoid duplicate uncached readdir calls on eofTrond Myklebust1-5/+15
2022-02-02NFS: Don't skip directory entries when doing uncached readdirtrondmy@kernel.org1-0/+1
2022-02-02NFS: Don't overfill uncached readdir pagestrondmy@kernel.org1-1/+2
2022-01-25Merge tag 'nfs-for-5.17-1' of git://git.linux-nfs.org/projects/anna/linux-nfsLinus Torvalds1-28/+118
2022-01-07NFSv4: nfs_atomic_open() can race when looking up a non-regular fileTrond Myklebust1-0/+5
2022-01-07NFSv4: Handle case where the lookup of a directory failsTrond Myklebust1-0/+13
2022-01-06NFS: Fix the verifier for case sensitive filesystem in nfs_atomic_open()Trond Myklebust1-1/+6
2022-01-06NFS: Add a helper to remove case-insensitive aliasesTrond Myklebust1-1/+11
2022-01-06NFS: Invalidate negative dentries on all case insensitive directory changesTrond Myklebust1-4/+15
2022-01-06NFSv4: Just don't cache negative dentries on case insensitive serversTrond Myklebust1-0/+3
2022-01-06NFS: Ensure the server has an up to date ctime before renamingTrond Myklebust1-0/+2
2022-01-06NFS: Ensure the server has an up to date ctime before hardlinkingTrond Myklebust1-0/+2
2022-01-06NFS: don't store 'struct cred *' in struct nfs_access_entryNeilBrown1-6/+44
2022-01-06NFS: pass cred explicitly for access testsNeilBrown1-7/+10
2022-01-06NFS: change nfs_access_get_cached to only report the maskNeilBrown1-11/+9
2021-12-29net: Don't include filter.h from net/sock.hJakub Kicinski1-0/+1
2021-11-05NFS: Remove the nfs4_label argument from nfs_setsecurityAnna Schumaker1-3/+2
2021-11-05NFS: Remove the nfs4_label argument from nfs_fhget()Anna Schumaker1-3/+3
2021-11-05NFS: Remove the nfs4_label argument from nfs_add_or_obtain()Anna Schumaker1-4/+3
2021-11-05NFS: Remove the nfs4_label argument from nfs_instantiate()Anna Schumaker1-3/+2
2021-11-05NFS: Remove the nfs4_label from the nfs4_getattr_resAnna Schumaker1-1/+1
2021-11-05NFS: Remove the label from the nfs4_lookup_res structAnna Schumaker1-22/+12
2021-11-05NFS: Remove the nfs4_label from the nfs_entry structAnna Schumaker1-14/+7
2021-11-05NFS: Don't trace an uninitialised valueTrond Myklebust1-1/+1
2021-10-03NFS: Do not flush the readdir cache in nfs_dentry_iput()Trond Myklebust1-4/+0
2021-10-03NFS: Fix dentry verifier racesTrond Myklebust1-4/+3
2021-10-03NFS: Further optimisations for 'ls -l'Trond Myklebust1-5/+11
2021-10-03NFS: Fix up nfs_readdir_inode_mapping_valid()Trond Myklebust1-1/+2
2021-10-03NFS: Ignore the directory size when marking for revalidationTrond Myklebust1-1/+1
2021-10-03NFS: Label the dentry with a verifier in nfs_rmdir() and nfs_unlink()Trond Myklebust1-3/+15
2021-10-03NFS: Label the dentry with a verifier in nfs_link(), nfs_symlink()Trond Myklebust1-0/+3
2021-05-07Merge tag 'nfs-for-5.13-1' of git://git.linux-nfs.org/projects/trondmy/linux-nfsLinus Torvalds1-10/+19
2021-05-07treewide: remove editor modelines and cruftMasahiro Yamada1-7/+0
2021-04-14NFSv4: link must update the inode nlink.Trond Myklebust1-1/+1
2021-04-13NFS: Separate tracking of file mode cache validity from the uid/gidTrond Myklebust1-2/+3
2021-04-13NFS: Separate tracking of file nlinks cache validity from the mode/uid/gidTrond Myklebust1-1/+1
2021-04-12NFS: Add a cache validity flag argument to nfs_revalidate_inode()Trond Myklebust1-1/+1
2021-04-05NFS: Only change the cookie verifier if the directory page cache is emptyTrond Myklebust1-1/+6
2021-04-05NFS: Fix handling of cookie verifier in uncached_readdir()Trond Myklebust1-6/+7
2021-04-05nfs: Subsequent READDIR calls should carry non-zero cookieverifierNagendra S Tomar1-0/+2
2021-03-08NFS: Fix open coded versions of nfs_set_cache_invalid()Trond Myklebust1-10/+10
2021-03-08NFS: Clean up function nfs_mark_dir_for_revalidate()Trond Myklebust1-3/+1
2021-03-08NFS: Don't gratuitously clear the inode cache when lookup failedTrond Myklebust1-12/+8
2021-03-08NFS: Don't revalidate the directory permissions on a lookup failureTrond Myklebust1-3/+17
2021-01-24fs: make helpers idmap mount awareChristian Brauner1-9/+14
2021-01-24namei: make permission helpers idmapped mount awareChristian Brauner1-1/+1
2020-12-17Merge tag 'nfs-for-5.11-1' of git://git.linux-nfs.org/projects/trondmy/linux-nfsLinus Torvalds1-260/+459
2020-12-02NFS: Do uncached readdir when we're seeking a cookie in an empty page cacheTrond Myklebust1-0/+17
2020-12-02NFS: Reduce number of RPC calls when doing uncached readdirTrond Myklebust1-36/+69
2020-12-02NFS: Optimisations for monotonically increasing readdir cookiesTrond Myklebust1-1/+22
2020-12-02NFS: Improve handling of directory verifiersTrond Myklebust1-12/+23
2020-12-02NFS: Handle NFS4ERR_NOT_SAME and NFSERR_BADCOOKIE from readdir callsTrond Myklebust1-8/+16
2020-12-02NFS: Allow the NFS generic code to pass in a verifier to readdirTrond Myklebust1-5/+18
2020-12-02NFS: Cleanup to remove nfs_readdir_descriptor_t typedefTrond Myklebust1-17/+13
2020-12-02NFS: Reduce readdir stack usageTrond Myklebust1-25/+33
2020-12-02NFS: nfs_do_filldir() does not return a valueTrond Myklebust1-14/+7
2020-12-02NFS: More readdir cleanupsTrond Myklebust1-14/+11
2020-12-02NFS: Support larger readdir buffersTrond Myklebust1-14/+19
2020-12-02NFS: Simplify struct nfs_cache_array_entryTrond Myklebust1-21/+25
2020-12-02NFS: Replace kmap() with kmap_atomic() in nfs_readdir_search_array()Trond Myklebust1-2/+2
2020-12-02NFS: Remove unnecessary kmap in nfs_readdir_xdr_to_array()Trond Myklebust1-7/+3
2020-12-02NFS: Don't discard readdir resultsTrond Myklebust1-4/+42
2020-12-02NFS: Clean up directory array handlingTrond Myklebust1-61/+77
2020-12-02NFS: Clean up nfs_readdir_page_filler()Trond Myklebust1-21/+18
2020-12-02NFS: Clean up readdir struct nfs_cache_arrayTrond Myklebust1-17/+49
2020-12-02NFS: Ensure contents of struct nfs_open_dir_context are consistentTrond Myklebust1-29/+43
2020-11-30SUNRPC: Add xdr_set_scratch_page() and xdr_reset_scratch_buffer()Chuck Lever1-1/+1
2020-11-12NFS: Remove unnecessary inode lock in nfs_fsync_dir()Trond Myklebust1-5/+1
2020-11-12NFS: Remove unnecessary inode locking in nfs_llseek_dir()Trond Myklebust1-5/+4
2020-09-16nfs: Fix security label length not being resetJeffrey Mitchell1-0/+3
2020-08-23treewide: Use fallthrough pseudo-keywordGustavo A. R. Silva1-1/+1
2020-07-13NFSv4.2: query the extended attribute access bitsFrank van der Linden1-0/+4
2020-07-13nfs: define nfs_access_get_cached functionFrank van der Linden1-4/+16
2020-04-07Merge tag 'nfs-for-5.7-1' of git://git.linux-nfs.org/projects/trondmy/linux-nfsLinus Torvalds1-29/+50
2020-04-06NFS: Clean up process of marking inode stale.Trond Myklebust1-2/+3
2020-03-24Merge branch 'for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/pau...Ingo Molnar1-1/+1
2020-03-16nfs: Replace zero-length array with flexible-array memberGustavo A. R. Silva1-1/+1
2020-03-16NFS:remove redundant call to nfs_do_accessZhouyi Zhou1-8/+1
2020-03-16NFS: Limit the size of the access cache by defaultTrond Myklebust1-1/+1
2020-03-16NFS: Use the 64-bit server readdir cookies when possibleTrond Myklebust1-17/+44
2020-02-20nfs: Fix nfs_access_get_cached_rcu() sparse errorMadhuparna Bhowmik1-1/+1
2020-02-12NFSv4: Fix revalidation of dentries with delegationsTrond Myklebust1-3/+102
2020-02-10NFS: Fix up directory verifier racesTrond Myklebust1-7/+14
2020-02-04nfs: optimise readdir cache page invalidationDai Ngo1-2/+7
2020-02-03NFS: Switch readdir to using iterate_shared()Trond Myklebust1-1/+1
2020-02-03NFS: Use kmemdup_nul() in nfs_readdir_make_qstr()Trond Myklebust1-1/+1
2020-02-03NFS: Directory page cache pages need to be locked when readTrond Myklebust1-11/+19
2020-02-03NFS: Fix memory leaks and corruption in readdirTrond Myklebust1-2/+15
2020-02-03NFS: nfs_access_get_cached_rcu() should use cred_fscmp()Trond Myklebust1-1/+1
2020-01-24NFS: Add softreval behaviour to nfs_lookup_revalidate()Trond Myklebust1-4/+11
2020-01-15NFS: Trust cached access if we've already revalidated the inode onceTrond Myklebust1-2/+2
2020-01-15NFS: Improve tracing of permission callsTrond Myklebust1-2/+2
2019-09-26Merge tag 'nfs-for-5.4-1' of git://git.linux-nfs.org/projects/anna/linux-nfsLinus Torvalds1-16/+25
2019-09-20NFS: remove unused check for negative dentryBenjamin Coddington1-5/+1
2019-09-20NFS: Refactor nfs_instantiate() for dentry referencing callersBenjamin Coddington1-14/+27
2019-08-19NFSv4: Fix return value in nfs_finish_open()Trond Myklebust1-1/+1
2019-07-12Revert "NFS: readdirplus optimization by cache mechanism" (memleak)Max Kellermann1-84/+6
2019-07-06NFS: Add deferred cache invalidation for close-to-open consistency violationsTrond Myklebust1-0/+4
2019-05-21treewide: Add SPDX license identifier for missed filesThomas Gleixner1-0/+1
2019-05-09nfs: pass the correct prototype to read_cache_pageChristoph Hellwig1-3/+4
2019-02-20NFS: Fix typo in comments of nfs_readdir_alloc_pages()zhangliguang1-2/+2
2019-02-20NFS: Remove redundant semicolonzhangliguang1-1/+1
2019-02-20NFS: readdirplus optimization by cache mechanismluanshi1-6/+84
2019-02-20NFS: Fix up documentation warningsTrond Myklebust1-1/+1
2018-12-19NFS: struct nfs_open_dir_context: convert rpc_cred pointer to cred.NeilBrown1-10/+5
2018-12-19NFS: change access cache to use 'struct cred'.NeilBrown1-25/+19
2018-09-30NFSv4: Fix lookup revalidate of regular filesTrond Myklebust1-40/+39
2018-09-30NFS: Refactor nfs_lookup_revalidate()Trond Myklebust1-96/+126
2018-08-23Merge tag 'nfs-for-4.19-1' of git://git.linux-nfs.org/projects/anna/linux-nfsLinus Torvalds1-12/+20
2018-08-13Merge branch 'work.mkdir' of git://git.kernel.org/pub/scm/linux/kernel/git/vi...Linus Torvalds1-3/+6
2018-07-26Fix error code in nfs_lookup_verify_inode()Lance Shelton1-1/+1
2018-07-26NFS: More excessive attribute revalidation in nfs_execute_ok()Trond Myklebust1-0/+2
2018-07-26NFS: Fix excessive attribute revalidation in nfs_execute_ok()Trond Myklebust1-1/+1
2018-07-26NFS: Allow optimisation of lseek(fd, SEEK_CUR, 0) on directoriesTrond Myklebust1-10/+16
2018-07-12get rid of 'opened' argument of ->atomic_open() - part 3Al Viro1-1/+1
2018-07-12getting rid of 'opened' argument of ->atomic_open() - part 2Al Viro1-3/+2
2018-07-12getting rid of 'opened' argument of ->atomic_open() - part 1Al Viro1-1/+1
2018-07-12introduce FMODE_CREATED and switch to itAl Viro1-1/+4
2018-06-28nfs_instantiate(): prevent multiple aliases for directory inodeAl Viro1-3/+6
2018-06-04NFS: Pass the inode down to the getattr() callbackTrond Myklebust1-1/+2
2018-05-31NFS: Ensure we revalidate the inode correctly after remove or renameTrond Myklebust1-4/+14
2018-05-28NFS: Optimise away lookups for rename targetsTrond Myklebust1-3/+5
2018-05-28NFS: If the VFS sets LOOKUP_REVAL then force a lookup of the dentryTrond Myklebust1-1/+1
2018-05-28NFS: Optimise away the close-to-open GETATTR when we have NFSv4 OPENTrond Myklebust1-4/+16
2018-04-10NFS: More fine grained attribute trackingTrond Myklebust1-1/+3
2018-04-10NFS: Move delegation recall into the NFSv4 callback for rename_setup()Trond Myklebust1-4/+0
2018-04-10NFS: Move the delegation return down into nfs4_proc_remove()Trond Myklebust1-3/+2
2018-04-10NFS: Move the delegation return down into nfs4_proc_link()Trond Myklebust1-2/+0
2017-11-27Rename superblock flags (MS_xyz -> SB_xyz)Linus Torvalds1-1/+1
2017-11-17Merge tag 'nfs-for-4.15-1' of git://git.linux-nfs.org/projects/anna/linux-nfsLinus Torvalds1-26/+24
2017-11-17NFS: Fix a typo in nfs_rename()Trond Myklebust1-1/+1
2017-11-17NFS: Fix bool initialization/comparisonThomas Meyer1-5/+5
2017-10-25locking/atomics: COCCINELLE/treewide: Convert trivial ACCESS_ONCE() patterns ...Mark Rutland1-4/+4
2017-10-16NFS: remove special-case revalidate in nfs_opendir()NeilBrown1-7/+0
2017-10-16NFS: revalidate "." etc correctly on "open".NeilBrown1-2/+2
2017-10-16NFS: Don't compare apples to elephants to determine access bitsAnna Schumaker1-3/+8