Skip to content

Commit

Permalink
ceph: rename dentry_release -> d_release, fix comment
Browse files Browse the repository at this point in the history
Just for consistency's sake.  Fix obsolete comment too.

Signed-off-by: Sage Weil <sage@newdream.net>
  • Loading branch information
Sage Weil committed Mar 21, 2011
1 parent 49bcb93 commit 147851d
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions fs/ceph/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -1027,14 +1027,13 @@ static int ceph_d_revalidate(struct dentry *dentry, struct nameidata *nd)
}

/*
* When a dentry is released, clear the dir I_COMPLETE if it was part
* of the current dir gen or if this is in the snapshot namespace.
* Release our ceph_dentry_info.
*/
static void ceph_dentry_release(struct dentry *dentry)
static void ceph_d_release(struct dentry *dentry)
{
struct ceph_dentry_info *di = ceph_dentry(dentry);

dout("dentry_release %p\n", dentry);
dout("d_release %p\n", dentry);
if (di) {
ceph_dentry_lru_del(dentry);
if (di->lease_session)
Expand Down Expand Up @@ -1259,14 +1258,14 @@ const struct inode_operations ceph_dir_iops = {

const struct dentry_operations ceph_dentry_ops = {
.d_revalidate = ceph_d_revalidate,
.d_release = ceph_dentry_release,
.d_release = ceph_d_release,
};

const struct dentry_operations ceph_snapdir_dentry_ops = {
.d_revalidate = ceph_snapdir_d_revalidate,
.d_release = ceph_dentry_release,
.d_release = ceph_d_release,
};

const struct dentry_operations ceph_snap_dentry_ops = {
.d_release = ceph_dentry_release,
.d_release = ceph_d_release,
};

0 comments on commit 147851d

Please sign in to comment.