nfsd: trivial comment updates
Subsystems (2)
PATCH 1/1 nfsd: trivial comment updates
locks.c doesn't use the BKL anymore and there is no fi_perfile field.
--- fs/nfsd/nfs4state.c | 6 +----- fs/nfsd/state.h | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-)
fs/nfsd/nfs4state.c +1 -5
@@ -4151,11 +4151,7 @@ nfsd4_lock(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, file_lock.fl_end =last_byte_offset (lock->lk_offset, lock->lk_length);nfs4_transform_lock_offset (&file_lock); -/* -* Try to lock the file in the VFS. -* Note: locks.c uses the BKL to protect the inode's lock list. -*/ - +/* Try to lock the file in the VFS. */ err =vfs_lock_file (filp,F_SETLK , &file_lock, &conflock);switch (-err) {case 0 :/* success! */
fs/nfsd/state.h +1 -5
@@ -374,11 +374,7 @@ static inline struct nfs4_lockowner * lockowner(struct nfs4_stateowner *so) return container_of(so, struct nfs4_lockowner, lo_owner); } -/* -* nfs4_file: a file opened by some number of (open) nfs4_stateowners. -* o fi_perfile list is used to search for conflicting -* share_acces, share_deny on the file. -*/ +/* nfs4_file: a file opened by some number of (open) nfs4_stateowners. */ struct nfs4_file {atomic_t fi_ref;struct list_head fi_hash;/* hash by "struct inode *" */
Signature · 1 line
1.7.11.2
Quoted 13 lines · Jeff Layton
locks.cdoesn't use the BKL anymore and there is nofi_perfilefield.Signed-off-by Jeff Layton <[email protected]>--- fs/nfsd/nfs4state.c | 6 +----- fs/nfsd/state.h | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-)fs/nfsd/nfs4state.c +0
-0
fs/nfsd/nfs4state.c nfsd4_lock(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, · line 4154
Quoted 9 lines
fs/nfsd/nfs4state.c +1
-5@@ -4151,11 +4151,7 @@ nfsd4_lock(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, file_lock.fl_end =last_byte_offset (lock->lk_offset, lock->lk_length);nfs4_transform_lock_offset (&file_lock); -/* -* Try to lock the file in the VFS. -* Note: locks.c uses the BKL to protect the inode's lock list. -*/ - +/* Try to lock the file in the VFS. */
Thanks, applying, but: mind if I just drop this comment entirely? "Try to lock the file in the VFS" doesn't add much to "vfs_lock_file()".
--b.
Quoted 23 lines
fs/nfsd/nfs4state.c +0
-0err =vfs_lock_file (filp,F_SETLK , &file_lock, &conflock);switch (-err) {case 0 :/* success! */ fs/nfsd/state.h +1
-5@@ -374,11 +374,7 @@ static inline struct nfs4_lockowner * lockowner(struct nfs4_stateowner *so) return container_of(so, struct nfs4_lockowner, lo_owner); } -/* -* nfs4_file: a file opened by some number of (open) nfs4_stateowners. -* o fi_perfile list is used to search for conflicting -* share_acces, share_deny on the file. -*/ +/* nfs4_file: a file opened by some number of (open) nfs4_stateowners. */ struct nfs4_file {atomic_t fi_ref;struct list_head fi_hash;/* hash by "struct inode *" */ Signature · 1 line
1.7.11.2
Quoted 27 lines · On Tue, 7 Aug 2012 11:23:19 -0400 "J. Bruce Fields" <[email protected]>…
Quoted 13 lines · Jeff Layton
locks.cdoesn't use the BKL anymore and there is nofi_perfilefield.Signed-off-by Jeff Layton <[email protected]>--- fs/nfsd/nfs4state.c | 6 +----- fs/nfsd/state.h | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-)fs/nfsd/nfs4state.c +0
-0fs/nfsd/nfs4state.c nfsd4_lock(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, · line 4154
Quoted 9 lines
fs/nfsd/nfs4state.c +1
-5@@ -4151,11 +4151,7 @@ nfsd4_lock(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, file_lock.fl_end =last_byte_offset (lock->lk_offset, lock->lk_length);nfs4_transform_lock_offset (&file_lock); -/* -* Try to lock the file in the VFS. -* Note: locks.c uses the BKL to protect the inode's lock list. -*/ - +/* Try to lock the file in the VFS. */ Thanks, applying, but: mind if I just drop this comment entirely? "Try to lock the file in the VFS" doesn't add much to "
vfs_lock_file()".
Quoted 2 lines
--b.
Totally fine with me.
Quoted 23 lines
Quoted 23 lines
fs/nfsd/nfs4state.c +0
-0err =vfs_lock_file (filp,F_SETLK , &file_lock, &conflock);switch (-err) {case 0 :/* success! */ fs/nfsd/state.h +1
-5@@ -374,11 +374,7 @@ static inline struct nfs4_lockowner * lockowner(struct nfs4_stateowner *so) return container_of(so, struct nfs4_lockowner, lo_owner); } -/* -* nfs4_file: a file opened by some number of (open) nfs4_stateowners. -* o fi_perfile list is used to search for conflicting -* share_acces, share_deny on the file. -*/ +/* nfs4_file: a file opened by some number of (open) nfs4_stateowners. */ struct nfs4_file {atomic_t fi_ref;struct list_head fi_hash;/* hash by "struct inode *" */ Signature · 1 line
1.7.11.2
Signature · 1 line
Jeff Layton <[email protected]>