[Cluster-devel] [PATCH] more CURRENT_TIME_SEC
Steven Whitehouse
swhiteho at redhat.com
Tue Jan 30 13:10:10 UTC 2007
Hi,
Now applied to the -nmw git tree. Thanks,
Steve.
On Mon, 2007-01-29 at 11:11 -0600, Eric Sandeen wrote:
> Whoops, quilt user error, missed this one in the previous patch.
>
> Signed-off-by: Eric Sandeen <sandeen at redhat.com>
>
> Index: linux-2.6.19/fs/gfs2/eattr.c
> ===================================================================
> --- linux-2.6.19.orig/fs/gfs2/eattr.c
> +++ linux-2.6.19/fs/gfs2/eattr.c
> @@ -301,7 +301,7 @@ static int ea_dealloc_unstuffed(struct g
>
> error = gfs2_meta_inode_buffer(ip, &dibh);
> if (!error) {
> - ip->i_inode.i_ctime.tv_sec = get_seconds();
> + ip->i_inode.i_ctime = CURRENT_TIME_SEC;
> gfs2_trans_add_bh(ip->i_gl, dibh, 1);
> gfs2_dinode_out(ip, dibh->b_data);
> brelse(dibh);
> @@ -718,7 +718,7 @@ static int ea_alloc_skeleton(struct gfs2
> (er->er_mode & S_IFMT));
> ip->i_inode.i_mode = er->er_mode;
> }
> - ip->i_inode.i_ctime.tv_sec = get_seconds();
> + ip->i_inode.i_ctime = CURRENT_TIME_SEC;
> gfs2_trans_add_bh(ip->i_gl, dibh, 1);
> gfs2_dinode_out(ip, dibh->b_data);
> brelse(dibh);
> @@ -853,7 +853,7 @@ static int ea_set_simple_noalloc(struct
> (ip->i_inode.i_mode & S_IFMT) == (er->er_mode & S_IFMT));
> ip->i_inode.i_mode = er->er_mode;
> }
> - ip->i_inode.i_ctime.tv_sec = get_seconds();
> + ip->i_inode.i_ctime = CURRENT_TIME_SEC;
> gfs2_trans_add_bh(ip->i_gl, dibh, 1);
> gfs2_dinode_out(ip, dibh->b_data);
> brelse(dibh);
> @@ -1134,7 +1134,7 @@ static int ea_remove_stuffed(struct gfs2
>
> error = gfs2_meta_inode_buffer(ip, &dibh);
> if (!error) {
> - ip->i_inode.i_ctime.tv_sec = get_seconds();
> + ip->i_inode.i_ctime = CURRENT_TIME_SEC;
> gfs2_trans_add_bh(ip->i_gl, dibh, 1);
> gfs2_dinode_out(ip, dibh->b_data);
> brelse(dibh);
>
>
More information about the Cluster-devel
mailing list