lkml.org 
[lkml]   [2009]   [Nov]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 02/13] sysfs: Rename sysfs_d_iput to sysfs_dentry_iput
    Quoting Eric W. Biederman (ebiederm@xmission.com):
    > From: Eric W. Biederman <ebiederm@xmission.com>
    >
    > Using dentry instead of d in the function name is what
    > several other filesystems are doing and it seems to be
    > a more readable convention.
    >
    > Acked-by: Tejun Heo <tj@kernel.org>
    > Signed-off-by: Eric W. Biederman <ebiederm@aristanetworks.com>

    Acked-by: Serge Hallyn <serue@us.ibm.com>

    > ---
    > fs/sysfs/dir.c | 4 ++--
    > 1 files changed, 2 insertions(+), 2 deletions(-)
    >
    > diff --git a/fs/sysfs/dir.c b/fs/sysfs/dir.c
    > index e020183..130dfc3 100644
    > --- a/fs/sysfs/dir.c
    > +++ b/fs/sysfs/dir.c
    > @@ -298,7 +298,7 @@ void release_sysfs_dirent(struct sysfs_dirent * sd)
    > goto repeat;
    > }
    >
    > -static void sysfs_d_iput(struct dentry * dentry, struct inode * inode)
    > +static void sysfs_dentry_iput(struct dentry * dentry, struct inode * inode)
    > {
    > struct sysfs_dirent * sd = dentry->d_fsdata;
    >
    > @@ -307,7 +307,7 @@ static void sysfs_d_iput(struct dentry * dentry, struct inode * inode)
    > }
    >
    > static const struct dentry_operations sysfs_dentry_ops = {
    > - .d_iput = sysfs_d_iput,
    > + .d_iput = sysfs_dentry_iput,
    > };
    >
    > struct sysfs_dirent *sysfs_new_dirent(const char *name, umode_t mode, int type)
    > --
    > 1.6.5.2.143.g8cc62
    >
    > --
    > To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
    > the body of a message to majordomo@vger.kernel.org
    > More majordomo info at http://vger.kernel.org/majordomo-info.html


    \
     
     \ /
      Last update: 2009-11-04 05:35    [W:0.023 / U:59.740 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site