diff options
author | Hugh Dickins <hughd@google.com> | 2012-05-29 18:06:41 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-05-29 19:22:23 -0400 |
commit | 17cf28afea2a1112f240a3a2da8af883be024811 (patch) | |
tree | ed9e3eb9b1d44118a12e4ecdf369e3b9b3208be1 /fs/bad_inode.c | |
parent | 3f31d07571eeea18a7d34db9af21d2285b807a17 (diff) |
mm/fs: remove truncate_range
Remove vmtruncate_range(), and remove the truncate_range method from
struct inode_operations: only tmpfs ever supported it, and tmpfs has now
converted over to using the fallocate method of file_operations.
Update Documentation accordingly, adding (setlease and) fallocate lines.
And while we're in mm.h, remove duplicate declarations of shmem_lock() and
shmem_file_setup(): everyone is now using the ones in shmem_fs.h.
Based-on-patch-by: Cong Wang <amwang@redhat.com>
Signed-off-by: Hugh Dickins <hughd@google.com>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Cong Wang <amwang@redhat.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/bad_inode.c')
-rw-r--r-- | fs/bad_inode.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/bad_inode.c b/fs/bad_inode.c index 37268c5bb98..1b35d6bd06b 100644 --- a/fs/bad_inode.c +++ b/fs/bad_inode.c | |||
@@ -292,7 +292,6 @@ static const struct inode_operations bad_inode_ops = | |||
292 | .getxattr = bad_inode_getxattr, | 292 | .getxattr = bad_inode_getxattr, |
293 | .listxattr = bad_inode_listxattr, | 293 | .listxattr = bad_inode_listxattr, |
294 | .removexattr = bad_inode_removexattr, | 294 | .removexattr = bad_inode_removexattr, |
295 | /* truncate_range returns void */ | ||
296 | }; | 295 | }; |
297 | 296 | ||
298 | 297 | ||