Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3222a3e5 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Al Viro
Browse files

[PATCH] fix ->llseek for more directories



With this patch all directory fops instances that have a readdir
that doesn't take the BKL are switched to generic_file_llseek.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent 4e9ed2f8
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -45,6 +45,7 @@ const struct file_operations afs_dir_file_operations = {
	.release	= afs_release,
	.readdir	= afs_readdir,
	.lock		= afs_lock,
	.llseek		= generic_file_llseek,
};

const struct inode_operations afs_dir_inode_operations = {
+1 −0
Original line number Diff line number Diff line
@@ -80,6 +80,7 @@ const struct file_operations bfs_dir_operations = {
	.read		= generic_read_dir,
	.readdir	= bfs_readdir,
	.fsync		= file_fsync,
	.llseek		= generic_file_llseek,
};

extern void dump_imap(const char *, struct super_block *);
+1 −0
Original line number Diff line number Diff line
@@ -765,6 +765,7 @@ const struct file_operations cifs_dir_ops = {
	.dir_notify = cifs_dir_notify,
#endif /* CONFIG_CIFS_EXPERIMENTAL */
	.unlocked_ioctl  = cifs_ioctl,
	.llseek = generic_file_llseek,
};

static void
+1 −0
Original line number Diff line number Diff line
@@ -839,6 +839,7 @@ const struct file_operations fat_dir_operations = {
	.compat_ioctl	= fat_compat_dir_ioctl,
#endif
	.fsync		= file_fsync,
	.llseek		= generic_file_llseek,
};

static int fat_get_short_entry(struct inode *dir, loff_t *pos,
+2 −1
Original line number Diff line number Diff line
@@ -39,7 +39,8 @@ const struct file_operations jffs2_dir_operations =
	.read =		generic_read_dir,
	.readdir =	jffs2_readdir,
	.unlocked_ioctl=jffs2_ioctl,
	.fsync =	jffs2_fsync
	.fsync =	jffs2_fsync,
	.llseek =	generic_file_llseek,
};


Loading