Browse Source

NFSv4.1/pnfs: Add sparse lock annotations for pnfs_find_alloc_layout

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Reviewed-by: Jeff Layton <jlayton@poochiereds.net>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Trond Myklebust 9 years ago
parent
commit
e5241e4388
1 changed files with 2 additions and 0 deletions
  1. 2 0
      fs/nfs/pnfs.c

+ 2 - 0
fs/nfs/pnfs.c

@@ -1298,6 +1298,8 @@ static struct pnfs_layout_hdr *
 pnfs_find_alloc_layout(struct inode *ino,
 pnfs_find_alloc_layout(struct inode *ino,
 		       struct nfs_open_context *ctx,
 		       struct nfs_open_context *ctx,
 		       gfp_t gfp_flags)
 		       gfp_t gfp_flags)
+	__releases(&ino->i_lock)
+	__acquires(&ino->i_lock)
 {
 {
 	struct nfs_inode *nfsi = NFS_I(ino);
 	struct nfs_inode *nfsi = NFS_I(ino);
 	struct pnfs_layout_hdr *new = NULL;
 	struct pnfs_layout_hdr *new = NULL;