]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - fs/debugfs/file.c
llseek: automatically add .llseek fop
[net-next-2.6.git] / fs / debugfs / file.c
index 0210898458b27286e403266e705ec1cd3396218b..89d394d8fe24c5b35fbdf71cfbef4bade56415b3 100644 (file)
@@ -43,6 +43,7 @@ const struct file_operations debugfs_file_operations = {
        .read =         default_read_file,
        .write =        default_write_file,
        .open =         default_open,
+       .llseek =       noop_llseek,
 };
 
 static void *debugfs_follow_link(struct dentry *dentry, struct nameidata *nd)
@@ -454,6 +455,7 @@ static const struct file_operations fops_bool = {
        .read =         read_file_bool,
        .write =        write_file_bool,
        .open =         default_open,
+       .llseek =       default_llseek,
 };
 
 /**
@@ -498,6 +500,7 @@ static ssize_t read_file_blob(struct file *file, char __user *user_buf,
 static const struct file_operations fops_blob = {
        .read =         read_file_blob,
        .open =         default_open,
+       .llseek =       default_llseek,
 };
 
 /**