Loading fs/gfs2/ops_address.c +3 −3 Original line number Diff line number Diff line Loading @@ -262,7 +262,7 @@ static int gfs2_readpage(struct file *file, struct page *page) int error; int do_unlock = 0; if (likely(file != &gfs2_internal_file_sentinal)) { if (likely(file != &gfs2_internal_file_sentinel)) { if (file) { struct gfs2_file *gf = file->private_data; if (test_bit(GFF_EXLOCK, &gf->f_flags)) Loading @@ -285,7 +285,7 @@ static int gfs2_readpage(struct file *file, struct page *page) if (unlikely(test_bit(SDF_SHUTDOWN, &sdp->sd_flags))) error = -EIO; if (file != &gfs2_internal_file_sentinal) { if (file != &gfs2_internal_file_sentinel) { gfs2_glock_dq_m(1, &gh); gfs2_holder_uninit(&gh); } Loading Loading @@ -324,7 +324,7 @@ static int gfs2_readpages(struct file *file, struct address_space *mapping, int ret; int do_unlock = 0; if (likely(file != &gfs2_internal_file_sentinal)) { if (likely(file != &gfs2_internal_file_sentinel)) { if (file) { struct gfs2_file *gf = file->private_data; if (test_bit(GFF_EXLOCK, &gf->f_flags)) Loading fs/gfs2/ops_file.c +2 −2 Original line number Diff line number Diff line Loading @@ -79,7 +79,7 @@ struct filldir_reg { * any other part of this. Its use is purely as a flag so that we * know (in readpage()) whether or not do to locking. */ struct file gfs2_internal_file_sentinal = { struct file gfs2_internal_file_sentinel = { .f_flags = O_NOATIME|O_RDONLY, }; Loading Loading @@ -112,7 +112,7 @@ int gfs2_internal_read(struct gfs2_inode *ip, struct file_ra_state *ra_state, desc.count = size; desc.error = 0; do_generic_mapping_read(inode->i_mapping, ra_state, &gfs2_internal_file_sentinal, pos, &desc, &gfs2_internal_file_sentinel, pos, &desc, gfs2_read_actor); return desc.written ? desc.written : desc.error; } Loading fs/gfs2/ops_file.h +1 −1 Original line number Diff line number Diff line Loading @@ -9,7 +9,7 @@ #ifndef __OPS_FILE_DOT_H__ #define __OPS_FILE_DOT_H__ extern struct file gfs2_internal_file_sentinal; extern struct file gfs2_internal_file_sentinel; extern int gfs2_internal_read(struct gfs2_inode *ip, struct file_ra_state *ra_state, char *buf, loff_t *pos, unsigned size); Loading Loading
fs/gfs2/ops_address.c +3 −3 Original line number Diff line number Diff line Loading @@ -262,7 +262,7 @@ static int gfs2_readpage(struct file *file, struct page *page) int error; int do_unlock = 0; if (likely(file != &gfs2_internal_file_sentinal)) { if (likely(file != &gfs2_internal_file_sentinel)) { if (file) { struct gfs2_file *gf = file->private_data; if (test_bit(GFF_EXLOCK, &gf->f_flags)) Loading @@ -285,7 +285,7 @@ static int gfs2_readpage(struct file *file, struct page *page) if (unlikely(test_bit(SDF_SHUTDOWN, &sdp->sd_flags))) error = -EIO; if (file != &gfs2_internal_file_sentinal) { if (file != &gfs2_internal_file_sentinel) { gfs2_glock_dq_m(1, &gh); gfs2_holder_uninit(&gh); } Loading Loading @@ -324,7 +324,7 @@ static int gfs2_readpages(struct file *file, struct address_space *mapping, int ret; int do_unlock = 0; if (likely(file != &gfs2_internal_file_sentinal)) { if (likely(file != &gfs2_internal_file_sentinel)) { if (file) { struct gfs2_file *gf = file->private_data; if (test_bit(GFF_EXLOCK, &gf->f_flags)) Loading
fs/gfs2/ops_file.c +2 −2 Original line number Diff line number Diff line Loading @@ -79,7 +79,7 @@ struct filldir_reg { * any other part of this. Its use is purely as a flag so that we * know (in readpage()) whether or not do to locking. */ struct file gfs2_internal_file_sentinal = { struct file gfs2_internal_file_sentinel = { .f_flags = O_NOATIME|O_RDONLY, }; Loading Loading @@ -112,7 +112,7 @@ int gfs2_internal_read(struct gfs2_inode *ip, struct file_ra_state *ra_state, desc.count = size; desc.error = 0; do_generic_mapping_read(inode->i_mapping, ra_state, &gfs2_internal_file_sentinal, pos, &desc, &gfs2_internal_file_sentinel, pos, &desc, gfs2_read_actor); return desc.written ? desc.written : desc.error; } Loading
fs/gfs2/ops_file.h +1 −1 Original line number Diff line number Diff line Loading @@ -9,7 +9,7 @@ #ifndef __OPS_FILE_DOT_H__ #define __OPS_FILE_DOT_H__ extern struct file gfs2_internal_file_sentinal; extern struct file gfs2_internal_file_sentinel; extern int gfs2_internal_read(struct gfs2_inode *ip, struct file_ra_state *ra_state, char *buf, loff_t *pos, unsigned size); Loading