Skip to content

Commit df3fd11

Browse files
AstralBobswhiteho
authored andcommitted
GFS2: Rename function gfs2_close to gfs2_release
This patch renames function gfs2_close to gfs2_release. Signed-off-by: Bob Peterson <rpeterso@redhat.com> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
1 parent 14e5f18 commit df3fd11

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎fs/gfs2/file.c‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -558,14 +558,14 @@ static int gfs2_open(struct inode *inode, struct file *file)
558558
}
559559

560560
/**
561-
* gfs2_close - called to close a struct file
561+
* gfs2_release - called to close a struct file
562562
* @inode: the inode the struct file belongs to
563563
* @file: the struct file being closed
564564
*
565565
* Returns: errno
566566
*/
567567

568-
static int gfs2_close(struct inode *inode, struct file *file)
568+
static int gfs2_release(struct inode *inode, struct file *file)
569569
{
570570
struct gfs2_sbd *sdp = inode->i_sb->s_fs_info;
571571
struct gfs2_file *fp;
@@ -1005,7 +1005,7 @@ const struct file_operations gfs2_file_fops = {
10051005
.unlocked_ioctl = gfs2_ioctl,
10061006
.mmap = gfs2_mmap,
10071007
.open = gfs2_open,
1008-
.release = gfs2_close,
1008+
.release = gfs2_release,
10091009
.fsync = gfs2_fsync,
10101010
.lock = gfs2_lock,
10111011
.flock = gfs2_flock,
@@ -1019,7 +1019,7 @@ const struct file_operations gfs2_dir_fops = {
10191019
.readdir = gfs2_readdir,
10201020
.unlocked_ioctl = gfs2_ioctl,
10211021
.open = gfs2_open,
1022-
.release = gfs2_close,
1022+
.release = gfs2_release,
10231023
.fsync = gfs2_fsync,
10241024
.lock = gfs2_lock,
10251025
.flock = gfs2_flock,
@@ -1037,7 +1037,7 @@ const struct file_operations gfs2_file_fops_nolock = {
10371037
.unlocked_ioctl = gfs2_ioctl,
10381038
.mmap = gfs2_mmap,
10391039
.open = gfs2_open,
1040-
.release = gfs2_close,
1040+
.release = gfs2_release,
10411041
.fsync = gfs2_fsync,
10421042
.splice_read = generic_file_splice_read,
10431043
.splice_write = generic_file_splice_write,
@@ -1049,7 +1049,7 @@ const struct file_operations gfs2_dir_fops_nolock = {
10491049
.readdir = gfs2_readdir,
10501050
.unlocked_ioctl = gfs2_ioctl,
10511051
.open = gfs2_open,
1052-
.release = gfs2_close,
1052+
.release = gfs2_release,
10531053
.fsync = gfs2_fsync,
10541054
.llseek = default_llseek,
10551055
};

0 commit comments

Comments
 (0)