[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090408055411.GA1615245@fiona.linuxhacker.ru>
Date: Wed, 8 Apr 2009 09:54:11 +0400
From: Oleg Drokin <green@...uxhacker.ru>
To: linux-fsdevel@...r.kernel.org
Cc: linux-kernel@...r.kernel.org
Subject: [PATCH] Separate out common fstatat code
Hello!
It seems we have way too many copy&pasted fstatat code elsewhere which
might not have been a problem until now, but with all the changes
with "stat light" now and who knows what other additions in there in
the future, it really helps if we have only one copy of the code.
Hence this patch adds fstatat_common() that fills struct kstat with
proper values and does all the AT flags parsing that's needed and
then calls all the proper underlying functions, what's left to the
caller now is to only copy filled out kstat buffer to the final
destination.
Bye,
Oleg
View attachment "fstatat_common_code.diff" of type "text/plain" (6676 bytes)
Powered by blists - more mailing lists