--- zzzz-none-000/linux-2.6.19.2/fs/buffer.c 2007-01-10 19:10:37.000000000 +0000 +++ davinci-8020-5505/linux-2.6.19.2/fs/buffer.c 2007-03-09 11:57:55.000000000 +0000 @@ -41,6 +41,7 @@ #include #include #include +#include static int fsync_buffers_list(spinlock_t *lock, struct list_head *list); static void invalidate_bh_lrus(void); @@ -2018,6 +2019,7 @@ err = -EFBIG; limit = current->signal->rlim[RLIMIT_FSIZE].rlim_cur; + gr_learn_resource(current, RLIMIT_FSIZE, (unsigned long) size, 1); if (limit != RLIM_INFINITY && size > (loff_t)limit) { send_sig(SIGXFSZ, current, 0); goto out; @@ -2735,6 +2737,11 @@ bh->b_end_io = end_buffer_read_sync; get_bh(bh); submit_bh(rw, bh); +#if defined(CONFIG_SQUASHFS_CRYPT) + /*--- if(bh->squashfs_flags) ---*/ + /*--- printk("[ll_rw_block] WARNING: squashfs_flags = %u --> 0\n", bh->squashfs_flags); ---*/ + /*--- bh->squashfs_flags = 0; ---*/ +#endif /*--- #if defined(CONFIG_SQUASHFS_CRYPT) ---*/ continue; } } @@ -2942,6 +2949,9 @@ { struct buffer_head *ret = kmem_cache_alloc(bh_cachep, gfp_flags); if (ret) { +#if defined(CONFIG_SQUASHFS_CRYPT) + ret->squashfs_flags = 0; +#endif /*--- #if defined(CONFIG_SQUASHFS_CRYPT) ---*/ get_cpu_var(bh_accounting).nr++; recalc_bh_state(); put_cpu_var(bh_accounting);