]> Gentwo Git Trees - linux/.git/commit
NFSD: Move the fh_getattr() helper
authorChuck Lever <chuck.lever@oracle.com>
Wed, 2 Jul 2025 23:33:45 +0000 (19:33 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Sun, 21 Sep 2025 23:24:50 +0000 (19:24 -0400)
commitc1f203e46c55ac063791bb893e30e5d14cabe1f6
tree48e80d07b1ba8946fc91bee0c02dea4dbe1924bf
parentc926f0298d3cdd25f1bfa019f5b74ed48796cef7
NFSD: Move the fh_getattr() helper

Clean up: The fh_getattr() function is part of NFSD's file handle
API, so relocate it.

I've made it an un-inlined function so that trace points and new
functionality can easily be introduced. That increases the size of
nfsd.ko by about a page on my x86_64 system (out of 26MB; compiled
with -O2).

Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfsfh.c
fs/nfsd/nfsfh.h
fs/nfsd/vfs.h