exportfs: Return the minimum required handle size
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Sat, 29 Jan 2011 13:13:25 +0000 (18:13 +0530)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 14 Mar 2011 13:15:28 +0000 (09:15 -0400)
commit5fe0c2378884e68beb532f5890cc0e3539ac747b
treebe25414052184e146049ea6466854366559d5528
parentc8b91accfa1059d5565443193d89572eca2f5dd6
exportfs: Return the minimum required handle size

The exportfs encode handle function should return the minimum required
handle size. This helps user to find out the handle size by passing 0
handle size in the first step and then redoing to the call again with
the returned handle size value.

Acked-by: Serge Hallyn <serue@us.ibm.com>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
12 files changed:
fs/btrfs/export.c
fs/exportfs/expfs.c
fs/fat/inode.c
fs/fuse/inode.c
fs/gfs2/export.c
fs/isofs/export.c
fs/ocfs2/export.c
fs/reiserfs/inode.c
fs/udf/namei.c
fs/xfs/linux-2.6/xfs_export.c
include/linux/exportfs.h
mm/shmem.c