summaryrefslogtreecommitdiffstats
path: root/fs/xfs
diff options
context:
space:
mode:
authorChristoph Hellwig2008-08-11 15:48:57 +0200
committerAl Viro2008-10-23 11:13:00 +0200
commit4ea3ada2955e4519befa98ff55dd62d6dfbd1705 (patch)
treeb473278d0df8d869d183fbc0e4a1a07585de240a /fs/xfs
parent[PATCH] generic_file_llseek tidyups (diff)
downloadkernel-qcow2-linux-4ea3ada2955e4519befa98ff55dd62d6dfbd1705.tar.gz
kernel-qcow2-linux-4ea3ada2955e4519befa98ff55dd62d6dfbd1705.tar.xz
kernel-qcow2-linux-4ea3ada2955e4519befa98ff55dd62d6dfbd1705.zip
[PATCH] new helper: d_obtain_alias
The calling conventions of d_alloc_anon are rather unfortunate for all users, and it's name is not very descriptive either. Add d_obtain_alias as a new exported helper that drops the inode reference in the failure case, too and allows to pass-through NULL pointers and inodes to allow for tail-calls in the export operations. Incidentally this helper already existed as a private function in libfs.c as exportfs_d_alloc so kill that one and switch the callers to d_obtain_alias. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/xfs')
0 files changed, 0 insertions, 0 deletions