From: Greg KH <gregkh@suse.de>
To: linux-kernel@vger.kernel.org, stable@kernel.org
Cc: Justin Forbes <jmforbes@linuxtx.org>,
Zwane Mwaikambo <zwane@arm.linux.org.uk>,
"Theodore Ts'o" <tytso@mit.edu>,
Randy Dunlap <rdunlap@xenotime.net>,
Dave Jones <davej@redhat.com>,
Chuck Wolber <chuckw@quantumlinux.com>,
Chris Wedgwood <reviews@ml.cw.f00f.org>,
Michael Krufky <mkrufky@linuxtv.org>,
Chuck Ebbert <cebbert@redhat.com>,
Domenico Andreoli <cavokz@gmail.com>, Willy Tarreau <w@1wt.eu>,
Rodrigo Rubira Branco <rbranco@la.checkpoint.com>,
Jake Edge <jake@lwn.net>, Eugene Teo <eteo@redhat.com>,
torvalds@linux-foundation.org, akpm@linux-foundation.org,
alan@lxorguk.ukuu.org.uk, linux-ext4@vger.kernel.org,
"Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>,
Greg Kroah-Hartman <gregkh@suse.de>
Subject: [patch 85/87] ext4: Use a fake block number for delayed new buffer_head
Date: Tue, 09 Jun 2009 02:40:13 -0700 [thread overview]
Message-ID: <20090609094112.328089030@blue.kroah.org> (raw)
In-Reply-To: <20090609094451.GA26439@kroah.com>
[-- Attachment #1: ext4-use-a-fake-block-number-for-delayed-new-buffer_head.patch --]
[-- Type: text/plain, Size: 1367 bytes --]
2.6.29-stable review patch. If anyone has any objections, please let us know.
------------------
From: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
(cherry picked from commit 33b9817e2ae097c7b8d256e3510ac6c54fc6d9d0)
Use a very large unsigned number (~0xffff) as as the fake block number
for the delayed new buffer. The VFS should never try to write out this
number, but if it does, this will make it obvious.
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
---
fs/ext4/inode.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
--- a/fs/ext4/inode.c
+++ b/fs/ext4/inode.c
@@ -2220,6 +2220,10 @@ static int ext4_da_get_block_prep(struct
struct buffer_head *bh_result, int create)
{
int ret = 0;
+ sector_t invalid_block = ~((sector_t) 0xffff);
+
+ if (invalid_block < ext4_blocks_count(EXT4_SB(inode->i_sb)->s_es))
+ invalid_block = ~0;
BUG_ON(create == 0);
BUG_ON(bh_result->b_size != inode->i_sb->s_blocksize);
@@ -2241,7 +2245,7 @@ static int ext4_da_get_block_prep(struct
/* not enough space to reserve */
return ret;
- map_bh(bh_result, inode->i_sb, 0);
+ map_bh(bh_result, inode->i_sb, invalid_block);
set_buffer_new(bh_result);
set_buffer_delay(bh_result);
} else if (ret > 0) {
next prev parent reply other threads:[~2009-06-09 10:38 UTC|newest]
Thread overview: 92+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20090609093848.204935043@blue.kroah.org>
2009-06-09 9:44 ` [patch 00/87] 2.6.29-stable review Greg KH
2009-06-09 9:38 ` [patch 01/87] xfrm: wrong hash value for temporary SA Greg KH
2009-06-09 9:38 ` [patch 02/87] tcp: fix MSG_PEEK race check Greg KH
2009-06-09 9:38 ` [patch 03/87] [PATCH 03/16] tcp: fix >2 iw selection Greg KH
2009-06-09 9:38 ` [patch 04/87] net: fix skb_seq_read returning wrong offset/length for page frag data Greg KH
2009-06-09 9:38 ` [patch 05/87] sch_teql: should not dereference skb after ndo_start_xmit() Greg KH
2009-06-09 9:38 ` [patch 06/87] net: fix length computation in rt_check_expire() Greg KH
2009-06-09 9:38 ` [patch 07/87] net: fix rtable leak in net/ipv4/route.c Greg KH
2009-06-09 9:38 ` [patch 08/87] Revert "rose: zero length frame filtering in af_rose.c" Greg KH
2009-06-09 9:38 ` [patch 09/87] pktgen: do not access flows[] beyond its length Greg KH
2009-06-09 9:38 ` [patch 10/87] myr10ge: again fix lro_gen_skb() alignment Greg KH
2009-06-09 9:38 ` [patch 11/87] vlan/macvlan: fix NULL pointer dereferences in ethtool handlers Greg KH
2009-06-09 9:39 ` [patch 12/87] mac8390: fix regression caused during net_device_ops conversion Greg KH
2009-06-09 9:39 ` [patch 13/87] bonding: fix alb mode locking regression Greg KH
2009-06-09 9:39 ` [patch 14/87] bonding: Remove debug printk Greg KH
2009-06-09 9:39 ` [patch 15/87] r8169: avoid losing MSI interrupts Greg KH
2009-06-09 9:39 ` [patch 16/87] sparc: Fix bus type probing for ESP and LE devices Greg KH
2009-06-09 9:39 ` [patch 17/87] sparc64: Fix smp_callin() locking Greg KH
2009-06-09 9:39 ` [patch 18/87] mm: SLUB fix reclaim_state Greg KH
2009-06-09 9:39 ` [patch 19/87] Fix oops on close of hot-unplugged FTDI serial converter Greg KH
2009-06-09 11:30 ` David Woodhouse
2009-06-09 13:42 ` Chuck Ebbert
2009-06-09 9:39 ` [patch 20/87] wimax: fix oops if netlink fails to add attribute Greg KH
2009-06-09 9:39 ` [patch 21/87] nfs: Fix NFS v4 client handling of MAY_EXEC in nfs_permission Greg KH
2009-06-09 9:39 ` [patch 22/87] futex: setup writeable mapping for futex ops which modify user space data Greg KH
2009-06-09 9:39 ` [patch 23/87] xen/blkfront: allow xenbus state transition to Closing->Closed when not Connected Greg KH
2009-06-09 9:39 ` [patch 24/87] TPM: get_event_name stack corruption Greg KH
2009-06-09 9:39 ` [patch 25/87] icom: fix rmmod crash Greg KH
2009-06-09 9:39 ` [patch 26/87] KVM: Make paravirt tlb flush also reload the PAE PDPTRs Greg KH
2009-06-09 9:39 ` [patch 27/87] KVM: Fix PDPTR reloading on CR4 writes Greg KH
2009-06-09 9:39 ` [patch 28/87] cfg80211: fix race between core hint and drivers custom apply Greg KH
2009-06-09 9:39 ` [patch 29/87] drm/r128: fix r128 ioremaps to use ioremap_wc Greg KH
2009-06-09 9:39 ` [patch 30/87] drivers/serial/mpc52xx_uart.c: fix array overindexing check Greg KH
2009-06-09 9:39 ` [patch 31/87] x86: ignore VM_LOCKED when determining if hugetlb-backed page tables can be shared or not Greg KH
2009-06-09 9:39 ` [patch 32/87] mm: account for MAP_SHARED mappings using VM_MAYSHARE and not VM_SHARED in hugetlbfs Greg KH
2009-06-09 9:39 ` [patch 33/87] USB: isp1760: urb_dequeue doesnt always find the urbs Greg KH
2009-06-09 9:39 ` [patch 34/87] sound: usb-audio: make the MotU Fastlane work again Greg KH
2009-06-09 9:39 ` [patch 35/87] usb-serial: fix crash when sub-driver updates firmware Greg KH
2009-06-09 9:39 ` [patch 36/87] x86/pci: fix mmconfig detection with 32bit near 4g Greg KH
2009-06-09 9:39 ` [patch 37/87] mtd_dataflash: unbreak erase support Greg KH
2009-06-09 9:39 ` [patch 38/87] hwmon: (lm78) Add missing __devexit_p() Greg KH
2009-06-09 9:39 ` [patch 39/87] cpuidle: make AMC C1E work in processor_idle Greg KH
2009-06-09 9:39 ` [patch 40/87] cpuidle: fix AMD C1E suspend hang Greg KH
2009-06-09 9:39 ` [patch 41/87] ide: fix 40-wire cable detection for TSST SH-S202* ATAPI devices (v2) Greg KH
2009-06-09 9:39 ` [patch 42/87] KVM: Explicity initialize cpus_hardware_enabled Greg KH
2009-06-09 9:39 ` [patch 43/87] ide_pci_generic: add quirk for Netcell ATA RAID Greg KH
2009-06-09 9:39 ` [patch 44/87] ide: fix OOPS during ide-cd error recovery Greg KH
2009-06-09 9:39 ` [patch 45/87] SELinux: BUG in SELinux compat_net code Greg KH
2009-06-09 9:39 ` [patch 46/87] e1000: add missing length check to e1000 receive routine Greg KH
2009-06-09 9:39 ` [patch 47/87] igb: fix LRO warning Greg KH
2009-06-09 9:39 ` [patch 48/87] iwlwifi: update key flags at time key is set Greg KH
2009-06-09 9:39 ` [patch 49/87] mac80211: minstrel, fix memory corruption Greg KH
2009-06-09 9:39 ` [patch 50/87] mac80211: pid, " Greg KH
2009-06-09 9:39 ` [patch 51/87] mac80211: avoid NULL ptr deref when finding max_rates in PID and minstrel Greg KH
2009-06-09 9:39 ` [patch 52/87] bnx2: Fix panic in bnx2_poll_work() Greg KH
2009-06-09 9:39 ` [patch 53/87] random: make get_random_int() more random Greg KH
2009-06-09 9:39 ` [patch 54/87] HID: fix dropped device-specific quirks Greg KH
2009-06-09 9:39 ` [patch 55/87] [SCSI] 3w-xxxx: scsi_dma_unmap fix Greg KH
2009-06-09 9:39 ` [patch 56/87] powerpc: fix for long standing bug noticed by gcc 4.4.0 Greg KH
2009-06-09 9:39 ` [patch 57/87] ide-tape: remove back-to-back REQUEST_SENSE detection Greg KH
2009-06-09 9:39 ` [patch 58/87] ALSA: hda - fix audio on HP TX25xx series notebooks Greg KH
2009-06-09 9:39 ` [patch 59/87] cdc-acm: Fix long standing abuse of tty->low_latency Greg KH
2009-06-09 9:39 ` [patch 60/87] keys: Handle there being no fallback destination keyring for request_key() Greg KH
2009-06-09 9:39 ` [patch 61/87] crypto: padlock - Revert aes-all alias to aes Greg KH
2009-06-09 9:39 ` [patch 62/87] crypto: api - Fix algorithm module auto-loading Greg KH
2009-06-09 9:39 ` [patch 63/87] ptrace: kill __ptrace_detach(), fix ->exit_state check Greg KH
2009-06-09 9:39 ` [patch 64/87] ptrace: simplify ptrace_exit()->ignoring_children() path Greg KH
2009-06-09 9:39 ` [patch 65/87] ptrace: reintroduce __ptrace_detach() as a callee of ptrace_exit() Greg KH
2009-06-09 9:39 ` [patch 66/87] ptrace: fix possible zombie leak on PTRACE_DETACH Greg KH
2009-06-09 9:39 ` [patch 67/87] x86: hpet: provide separate functions to stop and start the counter Greg KH
2009-06-09 9:39 ` [patch 68/87] x86: hpet: stop HPET_COUNTER when programming periodic mode Greg KH
2009-06-09 9:39 ` [patch 69/87] x86: hpet: fix periodic mode programming on AMD 81xx Greg KH
2009-06-09 9:39 ` [patch 70/87] ext4: dont inherit inappropriate inode flags from parent Greg KH
2009-06-09 9:39 ` [patch 71/87] ext4: tighten restrictions on inode flags Greg KH
2009-06-09 9:40 ` [patch 72/87] ext4: return -EIO not -ESTALE on directory traversal through deleted inode Greg KH
2009-06-09 9:40 ` [patch 73/87] ext4: Add fine print for the 32000 subdirectory limit Greg KH
2009-06-09 9:40 ` [patch 74/87] ext4: add EXT4_IOC_ALLOC_DA_BLKS ioctl Greg KH
2009-06-09 9:40 ` [patch 75/87] ext4: Automatically allocate delay allocated blocks on close Greg KH
2009-06-09 9:40 ` [patch 76/87] ext4: Automatically allocate delay allocated blocks on rename Greg KH
2009-06-09 9:40 ` [patch 77/87] ext4: Fix discard of inode prealloc space with delayed allocation Greg KH
2009-06-09 9:40 ` [patch 78/87] ext4: Add auto_da_alloc mount option Greg KH
2009-06-09 9:40 ` [patch 79/87] ext4: Check for an valid i_mode when reading the inode from disk Greg KH
2009-06-09 9:40 ` [patch 80/87] jbd2: Update locking coments Greg KH
2009-06-09 9:40 ` [patch 81/87] ext4: really print the find_group_flex fallback warning only once Greg KH
2009-06-09 9:40 ` [patch 82/87] ext4: Fix softlockup caused by illegal i_file_acl value in on-disk inode Greg KH
2009-06-09 9:40 ` [patch 83/87] ext4: Ignore i_file_acl_high unless EXT4_FEATURE_INCOMPAT_64BIT is present Greg KH
2009-06-09 9:40 ` [patch 84/87] ext4: Fix sub-block zeroing for writes into preallocated extents Greg KH
2009-06-09 9:40 ` Greg KH [this message]
2009-06-09 9:40 ` [patch 86/87] ext4: Clear the unwritten buffer_head flag after the extent is initialized Greg KH
2009-06-09 9:40 ` [patch 87/87] ext4: Fix race in ext4_inode_info.i_cached_extent Greg KH
2009-06-12 19:11 ` [patch 00/87] 2.6.29-stable review Fabio Comolli
2009-06-12 22:45 ` Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090609094112.328089030@blue.kroah.org \
--to=gregkh@suse.de \
--cc=akpm@linux-foundation.org \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=aneesh.kumar@linux.vnet.ibm.com \
--cc=cavokz@gmail.com \
--cc=cebbert@redhat.com \
--cc=chuckw@quantumlinux.com \
--cc=davej@redhat.com \
--cc=eteo@redhat.com \
--cc=jake@lwn.net \
--cc=jmforbes@linuxtx.org \
--cc=linux-ext4@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mkrufky@linuxtv.org \
--cc=rbranco@la.checkpoint.com \
--cc=rdunlap@xenotime.net \
--cc=reviews@ml.cw.f00f.org \
--cc=stable@kernel.org \
--cc=torvalds@linux-foundation.org \
--cc=tytso@mit.edu \
--cc=w@1wt.eu \
--cc=zwane@arm.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox