]> git.hungrycats.org Git - linux/commitdiff
[PATCH] tmpfs 3/6: use generic_file_llseek
authorAndrew Morton <akpm@digeo.com>
Thu, 3 Apr 2003 00:27:11 +0000 (16:27 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Thu, 3 Apr 2003 00:27:11 +0000 (16:27 -0800)
From: Hugh Dickins <hugh@veritas.com>

default_llseek's use of BKL and not i_sem was recently exposed:
tmpfs should be using generic_file_llseek which guards with i_sem.

mm/shmem.c

index 78dab3a25072b1b59d843e29d89064492c391ad6..30e63b9093fb02e0fbf4d07717f753a30f1e5174 100644 (file)
@@ -1749,6 +1749,7 @@ static struct address_space_operations shmem_aops = {
 static struct file_operations shmem_file_operations = {
        .mmap           = shmem_mmap,
 #ifdef CONFIG_TMPFS
+       .llseek         = generic_file_llseek,
        .read           = shmem_file_read,
        .write          = shmem_file_write,
        .fsync          = simple_sync_file,