summaryrefslogtreecommitdiffstats
path: root/fs/nfs/pnfs.h
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@primarydata.com>2016-07-24 12:45:47 -0400
committerTrond Myklebust <trond.myklebust@primarydata.com>2016-07-24 16:16:41 -0400
commitf71dfe8fc947e04a9e3d10723d4ec4c5c44ce0f5 (patch)
tree1549ee274eb1b1b88e5c13f65d9a97302373b87c /fs/nfs/pnfs.h
parentd9b61708fe6dcab7b50abfb87cb47690d00269a1 (diff)
downloadlinux-stable-f71dfe8fc947e04a9e3d10723d4ec4c5c44ce0f5.tar.gz
linux-stable-f71dfe8fc947e04a9e3d10723d4ec4c5c44ce0f5.tar.bz2
linux-stable-f71dfe8fc947e04a9e3d10723d4ec4c5c44ce0f5.zip
pNFS: Remove redundant pnfs_mark_layout_returned_if_empty()
That's already being taken care of in pnfs_layout_remove_lseg(). Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs/pnfs.h')
-rw-r--r--fs/nfs/pnfs.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/fs/nfs/pnfs.h b/fs/nfs/pnfs.h
index d71c9493693a..595648a3ad7a 100644
--- a/fs/nfs/pnfs.h
+++ b/fs/nfs/pnfs.h
@@ -552,19 +552,6 @@ pnfs_calc_offset_length(u64 offset, u64 end)
return 1 + end - offset;
}
-/**
- * pnfs_mark_layout_returned_if_empty - marks the layout as returned
- * @lo: layout header
- *
- * Note: Caller must hold inode->i_lock
- */
-static inline void
-pnfs_mark_layout_returned_if_empty(struct pnfs_layout_hdr *lo)
-{
- if (list_empty(&lo->plh_segs))
- set_bit(NFS_LAYOUT_INVALID_STID, &lo->plh_flags);
-}
-
static inline void
pnfs_copy_range(struct pnfs_layout_range *dst,
const struct pnfs_layout_range *src)